Skip to content

Instantly share code, notes, and snippets.

@kobuki
kobuki / pmxcfs_extract.py
Last active April 25, 2026 09:27
Create file hierarchy from a Proxmox pmxcfs/pve-cluster SQLite config database
#!/usr/bin/env python3
# Simple Python 3 script to create a browsable file tree from a Proxmox pmxcfs config.db.
# Can be used for restore tasks or other investigation purposes.
import sqlite3
import os
import argparse
def create_hierarchy(db_file, output_dir):
@grahamhelton
grahamhelton / statusline.py
Created April 24, 2026 17:17
check claude code price if you were using API pricing instead of a max subscription
#!/usr/bin/env python3
"""Claude Code status line: API-rate cost estimate (session / today)."""
import json
import sys
import glob
import os
import datetime as dt
# USD per 1M tokens: (input, output, cache_write_5m, cache_read)
# Source: platform.claude.com/docs/en/about-claude/pricing

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@Pulimet
Pulimet / AdbCommands
Last active April 25, 2026 09:19
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@Xibanya
Xibanya / persona.html
Created August 14, 2017 22:34
Maybe a persona 5 style html menu
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0" />
<style media="screen">
.container {
transition: all 1.2s ease;
width: 200px;
@InvalidLenni
InvalidLenni / official-discord-domains-list.md
Last active April 25, 2026 09:15
All (If I have forgotten a URL here, then please just let me know :)!) official Discord domains (Discord Domain List)

Official Discord Domains, let's reduce the scams!

Domain Description
dis.gd Discord's URL shorter (I like .gd as top-level domain)
discord.co Admin panel, this means not for us! (Not discord administrators / maybe staffs)
discord.com The domain is for e.g the homepage or message links etc
discord.design Dribbble profile shortlink
discord.dev Developer site shortlinks
discord.gg Invite shortlinks
@qntm
qntm / jsoncount.js
Last active April 25, 2026 09:15
How many valid JSON strings are there?
/**
Code for enumerating valid JSON strings.
Bounds checking is the responsibility of the caller.
The case N = 0 is intentionally not handled.
This code attempts to be somewhat readable without significantly impacting performance.
https://qntm.org/jsoncount
https://qntm.org/jsonutf8
*/